package xin.fsqr520.project.util;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

public class DateFormatUtil {
    // 1. 常用格式：年-月-日 时:分:秒
    static DateTimeFormatter formatter1 = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");

    public static String format(LocalDateTime cur) {


        return cur.format(formatter1);
    }
}
